<?php
/**
 * Klasse zum erstellen eines Navbar Eintrags
 *
 * @author		Joachim Ruf, Loresoft Software (http://www.loresoft.de)
 * @license		New BSD License
 * @version		Class for Bootstrap v2.3.2
 *
 * */


Class Bootstrap_Navbar_Divider
{
	private $arrParam			= NULL;


	/**
	 * @param string $_size		: breite {1-12}
	 * @param string $_content	: Auszugebender Content
	 * */
	function __construct (array $_arrParam = array()) {
		$this->arrParam	= $_arrParam;
	}


	private function getParameter ($_class, array $_arrParam) {
		$result	= NULL;

		if (isset($_arrParam['class'])) { // Class-Parameter verbinden
			$_arrParam['class']	= $_arrParam['class'].' '.$_class;
		} else {
			$_arrParam['class']	= $_class;
		}

		foreach ($_arrParam as $key => $val) {
			$result	.= ' '.$key.'="'.$val.'"';
		}

		return $result;
	}


	public function setActive($_enable = true) {
		$this->active	= $_enable;
	}


	public function isActive() {
		return false;
	}


	/**
	 * Liefert den Content zurueck
	 * @return int
	 * */
	public function getContent() {
		return NULL;
	}


	/**
	 * @desc Gibt den Datensatz aus.
	 * @return string
	 * */
	public function display() {
		return '<li'.$this->getParameter('divider', $this->arrParam).'></li>';
	}


}


?>